package Mangos::DB::Mangos::AreatriggerTeleport;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'areatrigger_teleport',

    columns => 
    [
        id                         => { type => 'integer', not_null => 1 },
        name                       => { type => 'text', length => 65535 },
        required_level             => { type => 'integer', default => '0', not_null => 1 },
        required_item              => { type => 'integer', default => '0', not_null => 1 },
        required_item2             => { type => 'integer', default => '0', not_null => 1 },
        heroic_key                 => { type => 'integer', default => '0', not_null => 1 },
        heroic_key2                => { type => 'integer', default => '0', not_null => 1 },
        required_quest_done        => { type => 'integer', default => '0', not_null => 1 },
        required_quest_done_heroic => { type => 'integer', default => '0', not_null => 1 },
        required_failed_text       => { type => 'text', length => 65535 },
        target_map                 => { type => 'integer', default => '0', not_null => 1 },
        target_position_x          => { type => 'float', default => '0', not_null => 1, precision => 32 },
        target_position_y          => { type => 'float', default => '0', not_null => 1, precision => 32 },
        target_position_z          => { type => 'float', default => '0', not_null => 1, precision => 32 },
        target_orientation         => { type => 'float', default => '0', not_null => 1, precision => 32 },
    ],

    primary_key_columns => [ 'id' ],
);

1;

package Mangos::DB::Mangos::AreatriggerTeleport::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::AreatriggerTeleport' }

__PACKAGE__->make_manager_methods('areatrigger_teleport');

1;
